local blaze = require "blaze"

local M = {
    ["sudoku.toggle.value"] = function(element, ref, child_element, func)
        child_element:set_gameobject(ref, true)
        local handler = function() func(element, child_element.on) end
        child_element.on_value_changed = handler
        return function()
            child_element.on_value_changed = nil
            child_element:release()
        end
    end
}
return M